﻿@using Controllers
@{
    var func=new MyFunc();
}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
@Html.Partial("_top")
</head>
<body>
@Html.Partial("_header")
<div id="cbanner" style="background:url('@ViewBag.model.cbanner') no-repeat center top;height:380px;width:100%;"></div>
<div class="position"><div class="box">您的当前位置：@Html.Raw(ViewBag.model.cur)</div></div>

<div class="sidebar box">
@Html.Partial("_left")
  <div class="sb_box">
    <h3 class="title">@ViewBag.model.title</h3>
    <div class="editor">
      <div id="news">
					<div class="tit"><h2>@ViewBag.model.title</h2></div>
					<div class="time">发布时间：@ViewBag.model.info["model"].addtime     浏览次数：@ViewBag.model.info["model"].hits</div>
					<div class="con">@Html.Raw(ViewBag.model.content)</div>	
					<p align="center">字体大小[ <a href="javascript:doZoom(16)">大</a> <a href="javascript:doZoom(14)">中</a> <a href="javascript:doZoom(12)">小</a> ]
		</p>
		<script language="JavaScript">
		function doZoom(size){$("#news .con").css("font-size",size+'px')}
		</script>		
			<div class="prvnext">
<div class="prv">
@{var prev=func.GetOne(ViewBag.model.ID,"prev",ViewBag.model.classid);}
上一篇：
@if(prev.ID>0){
<a href="/article/@prev.ID" title="@prev.title">@prev.title</a>
}
else{
<span>没有了</span>
}
</div>
<div class="next">
@{var next=func.GetOne(ViewBag.model.ID,"next",ViewBag.model.classid);}
下一篇：
@if(next.ID>0){
<a href="/article/@next.ID" title="@next.title">@next.title</a>
}
else{
<span>没有了</span>
}</div>
</div>		
				</div>
      <div class="clear"></div>
    </div>
  </div>
  <div class="clear"></div>
</div>

		<div id="footer">
			<div class="box">@Html.Raw(ViewBag.model.copyright)</div>
		</div>
	<script type="text/javascript" src="@ViewBag.model.skin/js/foot.js"></script>

</body>
</html>